<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
</head>
<body>

</body>
</html>
<script type="text/javascript">

        var person = {
            "firstname":"张",
            "lastname":"三丰",
            "age":"50"};
        // console.log(person.firstname)
        // console.log(person.lastname)
        // console.log(person.age)

        var json = [
            {"firstname":"张","lastname":"三丰","age":"50"},
            {"firstname":"张","lastname":"三丰","age":"50"},
            {"firstname":"张","lastname":"三丰","age":"50"}
        ];
        // for (var i = 0; i <json.length ; i++) {
        //     console.log(json[i].age)
        // }
        $.each(json,function (a,b) {
            console.log(b.firstname+b.lastname+","+b.age)
        })
        var json1 = {
            "shoufu":[
                {"name":"邹骏腾","age":"21","money":"200亿"},
                {"name":"马云","age":"55","money":"2000亿"},
                {"name":"郭尚旭","age":"59","money":"1亿"}
            ],
            "shoufu1":[
                {"name":"马化腾","age":"55"},
                {"name":"郭天乐","age":"50"}
            ]
        }
        $.each(json1.shoufu,function (a,b) {
            console.log(b.name+","+b.age+","+b.money)
        })
        $.each(json1.shoufu1,function (a,b) {
            console.log(b.name+","+b.age)
        })
</script>